/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Northern Iroquoian</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A18307 (C-0-T18130-A18306-A18307-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getNorthernIroquoian()
 * @model extendedMetaData="name='NorthernIroquoian'"
 * @generated
 */
public enum NorthernIroquoian implements Enumerator {
	/**
	 * The '<em><b>XCAY</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XCAY_VALUE
	 * @generated
	 * @ordered
	 */
	XCAY(0, "xCAY", "x-CAY"),

	/**
	 * The '<em><b>XMOH</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XMOH_VALUE
	 * @generated
	 * @ordered
	 */
	XMOH(1, "xMOH", "x-MOH"),

	/**
	 * The '<em><b>XONE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XONE_VALUE
	 * @generated
	 * @ordered
	 */
	XONE(2, "xONE", "x-ONE"),

	/**
	 * The '<em><b>XONO</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XONO_VALUE
	 * @generated
	 * @ordered
	 */
	XONO(3, "xONO", "x-ONO"),

	/**
	 * The '<em><b>XSEE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XSEE_VALUE
	 * @generated
	 * @ordered
	 */
	XSEE(4, "xSEE", "x-SEE"),

	/**
	 * The '<em><b>XTUS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XTUS_VALUE
	 * @generated
	 * @ordered
	 */
	XTUS(5, "xTUS", "x-TUS");

	/**
	 * The '<em><b>XCAY</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XCAY</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XCAY
	 * @model name="xCAY" literal="x-CAY"
	 * @generated
	 * @ordered
	 */
	public static final int XCAY_VALUE = 0;

	/**
	 * The '<em><b>XMOH</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XMOH</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XMOH
	 * @model name="xMOH" literal="x-MOH"
	 * @generated
	 * @ordered
	 */
	public static final int XMOH_VALUE = 1;

	/**
	 * The '<em><b>XONE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XONE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XONE
	 * @model name="xONE" literal="x-ONE"
	 * @generated
	 * @ordered
	 */
	public static final int XONE_VALUE = 2;

	/**
	 * The '<em><b>XONO</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XONO</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XONO
	 * @model name="xONO" literal="x-ONO"
	 * @generated
	 * @ordered
	 */
	public static final int XONO_VALUE = 3;

	/**
	 * The '<em><b>XSEE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XSEE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XSEE
	 * @model name="xSEE" literal="x-SEE"
	 * @generated
	 * @ordered
	 */
	public static final int XSEE_VALUE = 4;

	/**
	 * The '<em><b>XTUS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XTUS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XTUS
	 * @model name="xTUS" literal="x-TUS"
	 * @generated
	 * @ordered
	 */
	public static final int XTUS_VALUE = 5;

	/**
	 * An array of all the '<em><b>Northern Iroquoian</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final NorthernIroquoian[] VALUES_ARRAY =
		new NorthernIroquoian[] {
			XCAY,
			XMOH,
			XONE,
			XONO,
			XSEE,
			XTUS,
		};

	/**
	 * A public read-only list of all the '<em><b>Northern Iroquoian</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<NorthernIroquoian> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Northern Iroquoian</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static NorthernIroquoian get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			NorthernIroquoian result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Northern Iroquoian</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static NorthernIroquoian getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			NorthernIroquoian result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Northern Iroquoian</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static NorthernIroquoian get(int value) {
		switch (value) {
			case XCAY_VALUE: return XCAY;
			case XMOH_VALUE: return XMOH;
			case XONE_VALUE: return XONE;
			case XONO_VALUE: return XONO;
			case XSEE_VALUE: return XSEE;
			case XTUS_VALUE: return XTUS;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private NorthernIroquoian(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //NorthernIroquoian
